{
	//gROOT->ProcessLine(".L ~/work/geant4/tmp/Darwin-g++/g4test/libTTrackerHit.so");
	gROOT->ProcessLine(".L ~/work/geant4/tmp/Darwin-g++/g4test/libTEvent.so");
	TFile *file = TFile::Open("test.root");
	TTree *t = (TTree*)file->Get("t");

	TEvent* evt = new TEvent();
	t->SetBranchAddress("evt",&evt);
	t->GetEntry(0);
	int nhits = evt->GetNoOfHits();
	cout<<"nhits: "<<nhits<<endl;

	t->GetEntry(0);
	cout<<evt->GetHit(0).GetKE()<<endl;
	for (int i = 0; i < nhits; i++) {
		t->GetEntry(i);
	}

}
